<template>
  <div>
    <el-select v-model="value" placeholder="请选择" @change="change">
      <el-option
        v-for="item in options"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      >
      </el-option>
    </el-select>
  </div>
</template>

<script>
export default {
  props: ["valued",'options'],
  data() {
    return {
    };
  },
  computed: {
    value: {
      get: (app) => app.valued,
      set: function(){
        return this.valued
      }
    },
  },
  created() {},
  methods: {
    change(val) {
      this.$emit("getdifficulty", val);
    },
  },
};
</script>